#ifndef QCOMPLETETREEWIDGET_H
#define QCOMPLETETREEWIDGET_H

#include <QTreeWidget>
#include <QMap>

class QTreeWidgetItem;

namespace CORELIB
{
    struct tagObjectInfo;
    class QCompleterTreeWidget : public QTreeWidget
    {
        Q_OBJECT
    public:
        explicit QCompleterTreeWidget(QWidget *parent = 0);

        void    insertInfo(QList<tagObjectInfo*> list);

        void    move_position(const QRect &re);

    protected slots:
        void itemselect(QTreeWidgetItem* item,int index);
    protected:
        bool eventFilter(QObject *o, QEvent *e);
    signals:
        void select(tagObjectInfo* info);
    public slots:
    protected:
        QMap<QTreeWidgetItem*,tagObjectInfo*>   m_items;
    };

}

#endif // QCOMPLETETREEWIDGET_H
